
//本地存储token的键名
const TOKEN_KEY = 'TOKEN_KEY'
//存token
const setToken = (token)=>{
    localStorage.setItem(TOKEN_KEY,token)
}
//取token
const getToken = ()=>{
    return localStorage.getItem(TOKEN_KEY)
}

//删除token
const removeToken = ()=>{
    localStorage.removeItem(TOKEN_KEY)
}

export {setToken,getToken,removeToken}